package cn.myschool.test.day4;

import cn.myschool.dao.StudentDao;
import cn.myschool.entity.Student;
import cn.myschool.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class Search2TestStudent {
    public static void main(String[] args) {
        SqlSession s = MybatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);
        int []ar={1,2,46,6,9};
        List<Student> students = mapper.search2(new int[]{1, 3, 4, 7, 8, 9});
        students.forEach(System.out::println);
        MybatisUtil.close(s);
    }
}
